package com.mcdev.minecraftTest.listeners;


import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.player.AsyncPlayerChatEvent;

public class PlayerListener implements Listener {
    @EventHandler
    private void onPlayerChat(AsyncPlayerChatEvent e){
        //todo: 监听聊天事件，在玩家发出"苹果"时，给玩家头盔栏位强制设置一颗苹果
    }

    @EventHandler
    private void onBlockBreak(BlockBreakEvent e){
        //todo: 监听方块破坏事件，若破坏的是草方块（GRASS_BLOCK）时，修改主类缓存cacheBlockNum中玩家已破坏数量，当达到10次时，给玩家发送config中的message.success
    }
}
